using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using DevExpress.XtraReports.UI;
using System.Threading;
using ChinaDynastyTours.Controls;
using System.Data;

namespace ChinaDynastyTours.Assets
{
    public partial class EntertainmenRestaurantOrderReport : DevExpress.XtraReports.UI.XtraReport
    {
        public EntertainmenRestaurantOrderReport(string providerNames)
        {
            InitializeComponent();

            xrLabel3.Text = providerNames;
            xrTableCell2.Text = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
            xrTableCell26.Text = UserInfoCtrl.GetNameByUserName(Thread.CurrentPrincipal.Identity.Name);

            DataTable UserInfoDt = UserInfoCtrl.GetTelephoneFaxByUserRealName(xrTableCell26.Text);

            if (UserInfoDt != null && UserInfoDt.Rows.Count > 0)
            {
                xrTableCell27.Text = UserInfoDt.Rows[0]["Telephone"].ToString();//telephone;
                xrTableCell29.Text = UserInfoDt.Rows[0]["Fax"].ToString();//Fax;
            }

        }

    }
}
